Skip to content

Updating power_iteration.py #11705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Updating power_iteration.py #11705

wants to merge 2 commits into from

Conversation

da-ksh-esh
Copy link

Upgraded to Python 3.13 :) as per the issue
Key Changes:
Type Hints: Updated to include npt.NDArray for better type checking with numpy arrays and Union for real/complex compatibility. Error Handling: More informative assertion errors for matrix dimensions and types.
Matrix Shape Handling: Explicitly named dimensions (N, M) to ensure clarity.
Complex Hermitian Check: Uses assert with an error message for better debugging.

da-ksh-esh and others added 2 commits October 3, 2024 20:33
Key Changes:
Type Hints: Updated to include npt.NDArray for better type checking with numpy arrays and Union for real/complex compatibility.
Error Handling: More informative assertion errors for matrix dimensions and types.
Matrix Shape Handling: Explicitly named dimensions (N, M) to ensure clarity.
Complex Hermitian Check: Uses assert with an error message for better debugging.
@da-ksh-esh da-ksh-esh closed this Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant